package com.example.demo.Comm;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ExceptionAdvice {
    @ExceptionHandler(Exception.class)
    public Resultajax doException(Exception e) {
        return Resultajax.fail(-1,e.getMessage());
    }
}
